package com.itheima.service.db;

import com.itheima.domain.db.*;
import com.itheima.domain.vo.ConclusionVo;
import com.itheima.domain.vo.PaperListVo;

import java.util.List;
import java.util.Map;

public interface TestSoulService {
    //查询灵魂列表
    List<PaperListVo> queryPaperList(Long userId);

    //填充数据
    void paddingData(PaperListVo paperListVo, int i);

    //提交问卷
    String submitTestPaper(Map<String, List<Answers>> map, Long userId);

    ConclusionVo getReport(Long id, Long userId);

    //查询问卷列表
    //查询问卷列表
    List<SoulPaper> findSoulTestList();

    //根据用户id查询灵魂问题
    List<SoulQuestion> findSoulQuestionBySid(String sid);

    //根据用户id查询选项问题
    List<SoulOptions> findOptionByQid(Long qid);

    //根据问题id删除问题
    String deleteSoulQuestionById(String soulQuestionId);

    SoulQuestion findSoulQuestionById(String id);

    Long saveSoulQuestion(SoulQuestion soulQuestion);

    String saveOption(SoulOptions option);

    Integer findSoulQuestionId();

    void updateSoulQuestionById(SoulQuestion soulQuestion);

    void updateOptionById(SoulOptions option);
}
